# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=bmkdep
pkgver=20140112
pkgrel=0
pkgdesc="Construct Makefile dependency list"
url="https://github.com/trociny/bmkdep"
arch="all"
license="BSD-2-Clause"
makedepends="bmake groff"
subpackages="$pkgname-doc"
source="https://github.com/trociny/bmkdep/archive/bmkdep-$pkgver.tar.gz"
options="!check" # No tests.
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	default_prepare

	# Program is named bmkdep, update manual page for clarification.
	sed -i -e "s/mkdep/bmkdep/g;s/MKDEP/BMKDEP/g;" bmkdep.1
}

build() {
	bmake

}

package() {
	bmake install DESTDIR="$pkgdir" MANTARGET=man MANDIR=/usr/share/man PREFIX=/usr
}

sha512sums="c071adeab94907c4a8cb3d8d8fa8fcfb1f93c37c50ec2801dea530e391b9d6117a7c808fdfda6b9d2505535d2ece5d113639fd3f4d0256f58e9748a8a9f3dc9e  bmkdep-20140112.tar.gz"
